package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class PictureAddNewDTO implements Serializable {
    /**
     * 相册id
     */
    @NotNull(message = "相册id必须提交")
    @ApiModelProperty(value = "相册id",required = true)
    private Long albumId;
    /**
     * 图片url
     */
    @NotNull(message = "图片url必须提交")
    @ApiModelProperty(value = "图片url",required = true)
    private String url;
    /**
     * 图片简介
     */
    @ApiModelProperty(value = "图片简介",required = true)
    private String description;
    /**
     * 图片宽度
     */
    @ApiModelProperty(value = "图片宽度",required = true)
    private Integer width;
    /**
     * 图片高度
     */
    @ApiModelProperty(value = "图片高度",required = true)
    private Integer height;
    /**
     * 是否为封面图片图片,1=是,0=否
     */
    @ApiModelProperty(value = "是否为封面图片图片,1=是,0=否",required = true)
    private Integer isCover;
    /**
     * 自定义排序序号
     */
    @ApiModelProperty(value = "自定义排序序号",required = true)
    private Integer sort;
}
